import request from '@/utils/request'

// 查询供应商详情列表
export function listContext(query) {
  return request({
    url: '/context/context/list',
    method: 'get',
    params: query
  })
}

// 查询供应商详情详细
export function getContext(vaId) {
  return request({
    url: '/context/context/' + vaId,
    method: 'get'
  })
}

// 新增供应商详情
export function addContext(data) {
  return request({
    url: '/context/context',
    method: 'post',
    data: data
  })
}

// 修改供应商详情
export function updateContext(data) {
  return request({
    url: '/context/context',
    method: 'put',
    data: data
  })
}

// 删除供应商详情
export function delContext(vaId) {
  return request({
    url: '/context/context/' + vaId,
    method: 'delete'
  })
}
